export function keysOf<T extends {}>(obj: T): Array<keyof T> {
  return Object.keys(obj) as any
}

export function toArray<T extends {}>(value: T | T[]) {
  return Array.isArray(value) ? value : [value]
}
